﻿<Page x:Class="YLServerInterface.NavigateWindows.frmImageOp"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="frmImageOp" Height="Auto" Width="Auto" 
        xmlns:my="clr-namespace:YLServerInterface.UserControls" Loaded="Window_Loaded">
    <Page.Resources>

    </Page.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <StackPanel  Orientation="Horizontal" HorizontalAlignment="Center" >
                <TextBlock   Text="水平分辨率:"/>
                <TextBox   Name="txtX" Text="800" Width="80" TabIndex="1"/>
                <TextBlock   Text="垂直分辨率:"/>
                <TextBox Name="txtY" Text="800" Width="80" TabIndex="2"/>
            </StackPanel>
        </Grid>
        
        <Button Grid.Row="1" Content="Make" Name="btnMake" Click="btnMake_Click" VerticalAlignment="Top" HorizontalAlignment="Center" Height="42"  Width="61" />

        <ListBox Name="lstImgCutters" Grid.Row="2" >
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <WrapPanel/>
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
        </ListBox>


        <!--旧的-->
        <!--<ScrollViewer DockPanel.Dock="Top" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
                <WrapPanel Name="wp" Orientation="Horizontal" Height="Auto">-->

        <!--<my:ImageCutterWrapper
                        x:Name="cutter1"
                        Width="200"
                        Height="auto"
                        RectWidth="800"
                        RectHeight="500"
                        ImgPath="F:\YL\sucai\t2.jpg"
                        SaveImgPath="F:\YL\sucai\t2_2.jpg"
                    />-->

        <!--</WrapPanel>
            </ScrollViewer>-->



    </Grid>
</Page>
